home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / progs / editor / frexxed / fpl / c++mode.fpl < prev    next >
Text File  |  1996-04-02  |  2KB  |  61 lines

  1. // $Id: C++Mode.FPL 1.5 1996/04/02 18:33:53 jskov Exp $
  2. // $VER: C++Mode.FPL 1.0 (23.06.95) © Jesper Skov
  3.  
  4. //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» CppModePrefs() ««
  5. export void CppModePrefs()
  6. {
  7.   PromptInfo(-1,"C++Mode preferences",-1,-1,
  8.    "Cpp_comment_start_skip",
  9.    "Cpp_comment_start",
  10.    "Cpp_comment_end",
  11.    "Cpp_line_comment_start",
  12.    "Cpp_line_comment_body",
  13.    "Cpp_line_comment_end",
  14.    "Cpp_tab_size",
  15.    "Cpp_comment_column"
  16.    );
  17. }
  18.  
  19. //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» CppModeInit() ««
  20. export void CppModeInit()
  21. {
  22.   // Set comment strings for C++ mode
  23.   SetInfo(-1,"comment_start_skip",ReadInfo("Cpp_comment_start_skip"));
  24.   SetInfo(-1,"comment_start",ReadInfo("Cpp_comment_start"));
  25.   SetInfo(-1,"comment_end",ReadInfo("Cpp_comment_end"));
  26.   SetInfo(-1,"line_comment_start",ReadInfo("Cpp_line_comment_start"));
  27.   SetInfo(-1,"line_comment_body",ReadInfo("Cpp_line_comment_body"));
  28.   SetInfo(-1,"line_comment_end",ReadInfo("Cpp_line_comment_end"));
  29.   SetInfo(-1,"comment_column",ReadInfo("Cpp_comment_column")); // set comment col
  30.   SetInfo(-1,"comment_mode",1);            // enable comment mode
  31.  
  32.   SetInfo(-1,"comment_begin","/*");        // Set fold comment
  33.  
  34.   SetInfo(-1,"tab_size",ReadInfo("Cpp_tab_size")); // Set tabulator size
  35.  
  36.   SetInfo(-1,"c_indent_mode",1);            // enable c-indent-mode
  37.  
  38.   SetInfo(-1,"cpp_mode",1);// enable self
  39. }
  40.  
  41. //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» C++Mode Settings ««
  42. ConstructInfo("Cpp_comment_start_skip","","","WHGS","",0,0,"////+ *");
  43. ConstructInfo("Cpp_comment_start","","","WHGS","",0,0,"// ");
  44. ConstructInfo("Cpp_comment_end","","","WHGS","",0,0,"");
  45. ConstructInfo("Cpp_line_comment_body","","","WHGS","",0,0,"»");
  46. ConstructInfo("Cpp_line_comment_end","","","WHGS","",0,0,"««");
  47. ConstructInfo("Cpp_line_comment_start","","","WHGS","",0,0,"//");
  48.  
  49. ConstructInfo("Cpp_comment_column","","","WHGI","",0,999,45);
  50. ConstructInfo("Cpp_tab_size","","","WHGI","",0,999,4);
  51.  
  52.  
  53. ConstructInfo("cpp_mode", "","", "LBH","", 0,0,0);
  54.  
  55. AddMode(0, "cpp_mode", "cpp_mode_ext", "cpp_mode_exe");
  56.  
  57. //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» C++Mode menu ««
  58. MenuAdd("s", "C++Mode...", "CppModePrefs();", "", ReadInfo("menu_program_title"),ReadInfo("menu_program_item"),-1); // Add to PackageSettings
  59. MenuBuild();
  60.  
  61.